package com.welike.shibo.vo.page;

import lombok.Data;

import java.util.Date;

/**
 * 评论信息ViewObjective
 *
 * @author fangyu
 * @version v1.0.0
 * @since 2019-08-28 23:31
 */
@Data
public class CommentPageVo {

    // 每条评论的id
    private Integer id;

    // 评论人用户id
    private String commentUid;

    // 评论人昵称
    private String NickName;

    // 评论人头像
    private String Avatar;

    // 评论内容
    private String content;

    // 评论时间
    private Date commentTime;

    // 评论点赞状态
    private boolean likeStatus = false;

    // @类型，1-有, 2-无
    private Integer atType;

    private AtContent atContent;

    @Data
    public static class AtContent {

        // 被@人的id
        private String atUid;

        // 被@人的昵称
        private String atNickName;
    }

    private boolean replyState = false;

    private AuthorReply authorReply;

    @Data
    public static class AuthorReply {


        // 作者的昵称
        private String authorNickName;

        // 作者头像
        private String authorAvatar;

        // 回复内容
        private String replyContent;

        // 回复时间
        private Date replyTime;

    }


}
